//
//  YLMemberPrivilegeHeaderView.m
//  YLFinanceService
//
//  Created by she1323 on 2017/9/12.
//  Copyright © 2017年 she1323. All rights reserved.
//  会员特权头部

#import "YLMemberPrivilegeHeaderView.h"
#import <Masonry.h>
#import <UIImageView+WebCache.h>

@interface YLMemberPrivilegeHeaderView ()
@property (nonatomic, strong) UIImageView *imageView;
@end

@implementation YLMemberPrivilegeHeaderView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self setUp];
    }
    return self;
}

- (void)setUp
{
    __weak typeof(self) weakSelf = self;
    
    UIImageView *imageView = [[UIImageView alloc] init];
    _imageView = imageView;
    [self addSubview:imageView];
    
    [imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.left.bottom.mas_equalTo(weakSelf);
    }];
    
}

- (void)setImageName:(NSString *)imageName
{
    _imageName = imageName;
    [_imageView sd_setImageWithURL:[NSURL URLWithString:imageName] placeholderImage:nil];
    
    
}


@end
